<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String rootPath = request.getContextPath();
%>
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>个人中心</title>
	<meta name="viewport" content="initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css"/>
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css"/>
<!-- 	<link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> -->
    <link rel="stylesheet" href="../static/weixin.css"/>
</head>
<body>




	<div class="content">
	
	
	<div class="card">
    
	    <div class="card-content">
	      <div class="list-block media-list">
	        <ul>
	          <li class="item-content">
	            <div class="item-media">
	              <img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i3/TB10LfcHFXXXXXKXpXXXXXXXXXX_!!0-item_pic.jpg_250x250q60.jpg" width="44">
	            </div>
	            <div class="item-inner">
	              <div class="item-title-row">
	                <div class="item-title">标题</div>
	              </div>
	              <div class="item-subtitle">子标题</div>
	            </div>
	          </li>
	        </ul>
	      </div>
    </div>
    
    <div class="card-footer">
      <span>2015/01/15</span>
      <span>5 评论</span>
    </div>
  </div>            
</div>


	<div class="list-block media-list">
    <ul>
      <li>
        <a href="#" class="item-content">
          <div class="item-media"><img src="http://wx.qlogo.cn/mmopen/PiajxSqBRaEJOAJHwczzVib0l05JCcvNX4icN3Mibh3T9cdiaBm4U3yfXIJCMJPOAMIxbmpfvRMiciamxwURojs9VickqA/0" style='width: 4rem;'></div>
          <div class="item-inner">
            <div class="item-title-row">
              <div class="item-title">【${sysMemeberType.typeName}】</div>
              <div class="item-after"><c:if test="${sysMemeberType.typeCode!=30}">
	                	<img src="<%=rootPath %>/static/image/Chart up.png" style="width:30px;height:20px;" onclick="doUpReq();"/>
	                </c:if></div>
            </div>
            <div class="item-subtitle"></div>
            <div class="item-text">积分</div>
          </div>
        </a>
      </li>
    </ul>
  </div>
  
  
   

     <!--  <div id="clearboth"></div> -->
      
  
	
     
      <div class="myorder" onclick="doShowProducts();">
           <span class="icon icon-menu">&nbsp;我的订单</span>
           <span class="icon icon-right right"></span>
           <span class="smallfont right">查看全部订单 </span>
      </div>
      
      
     <div class="myordey-category">
          <div class="myordey-category-mod notlase-category"> 
               <a href="index">
                    <img src="../static/image/pay.svg" style='width: 1.5rem;'/>
                    <div>待付款</div>
                </a>

          </div>
          <div class="myordey-category-mod notlase-category">
              <a href="index">
                    <img src="../static/image/send.svg" style='width: 1.5rem;'/>
                    <div>待发货</div>
                </a>
          </div>
          <div class="myordey-category-mod notlase-category"> 
                <a href="index">
                    <img src="../static/image/gifts.svg" style='width: 1.5rem;'/>
                    <div>待收货</div>
                </a>
          </div>
          <div class="myordey-category-mod">
              <a href="index">
                    <img src="../static/image/rollback.svg" style='width: 1.5rem;'/>
                    <div>退换货</div>
                </a>
          </div>
      </div>
 
 	  <div class="myorder" onclick="doShowFriends();">
           <span class="icon icon-friends">&nbsp;我的朋友</span>
           <span class="icon icon-right right"></span>
      </div>
      
 	 <div class="myorder" onclick="doShowAddr();">
           <span class="icon icon-edit">&nbsp;收货地址管理</span>
           <span class="icon icon-right right"></span>
      </div>
      
     <div class="myorder">
           <span class="icon icon-star">&nbsp;积分来源</span>
           <span class="icon icon-right right"></span>
      </div>
      
     <div class="myorder">
           <span class="icon icon-me">&nbsp;个人信息</span>
           <span class="icon icon-right right"></span>
      </div>
      <div class="myorder" onclick="doShowOwnerCard();">
           <span class="icon icon-code">&nbsp;我的二维码</span>
           <span class="icon icon-right right"></span>
      </div>
 
  </div>

  
	<script type='text/javascript'
		src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
	<script type='text/javascript'
		src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
	<script type='text/javascript'
		src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
	
	<script type="text/javascript">
		function doShowFriends(){
			self.location='<%=rootPath%>/weixin/memberfriends'; 
		}
		
		function doShowProducts(){
			self.location='<%=rootPath%>/weixin/memberproducts'; 
		}
		
		
		function doShowAddr(){
			self.location='<%=rootPath%>/weixin/memberaddr'; 
		}
		
		
		function doShowOwnerCard(){
			self.location='<%=rootPath %>/weixin/membercard'; 
		}
		
		function doMyGoods()
		{
			self.location="<%=rootPath %>/weixin/mygoods";
		}
		
		function doUpReq(){
			var ajaxurl="<%=rootPath%>/json/memberupreq";
	        $.ajax({
	        	 type: "POST",
	             url: ajaxurl,
	             dataType: "json",
	             success: function(data){
	            	 if(data.flag == true){
	            		/* alert(data.msg); */
	            		 $.toast(data.msg);
	            		 var ajaxurl="<%=rootPath%>/json/weixinSendMessge";
	            		 var htmlobj=$.ajax({url:ajaxurl,async:false});
	            	 } 
	             },
	             error: function(data){
	            	 alert("error");
	            	 console.info(data.msg);
	             }
	         });	 
		}
		
		
	</script>

</body>
</html>